package org.example.product.api.service;

import com.netflix.hystrix.contrib.javanica.annotation.HystrixCommand;
import org.example.product.api.model.ProductModel;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.List;

public interface ProductRemoteService {

    @RequestMapping(value = "/product/list", method = RequestMethod.GET)
    ResponseEntity<List<ProductModel>> list();

}
